package com.woniu.service.impl;

import com.woniu.entity.Sort;
import com.woniu.mapper.SortMapper;
import com.woniu.service.SortService;
import com.woniu.uitls.ResponseUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SortServiceImpl implements SortService {
    @Resource
    private SortMapper sortMapper;
    @Override
    public ResponseUtil findAll() {
        List<Sort> all = sortMapper.findAll();

        return ResponseUtil.get(200,"查询成功",all);
    }
}
